package com.ly.hotel.spainterface.nm;

import android.graphics.Rect;
import android.view.View;

import androidx.recyclerview.widget.RecyclerView;

/**
 * Created by SHUBEN on 2018/3/10.
 */

public class RecyDecoration extends RecyclerView.ItemDecoration {
    private int margin;

    public RecyDecoration(int margin){
        this.margin = margin;
    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        outRect.set(0,margin,0,margin);
    }
}
